#include <stdio.h>
#include <signal.h>
#include <sys/types.h>
#include <unistd.h>

void Sig_Handler(int num) {
    printf("Sig_Num = %d\n", num);
}

int main()
{
    // kill(getpid(), SIGINT);
    signal(SIGINT, Sig_Handler);
    
    while(1) {
        sleep(1);
        kill(getpid(), SIGINT);
    }

    return 0;
}

